import request from '@/utils/request'

// 查询圈子动态列表
export function listTrends(query) {
  return request({
    url: '/pc/trends/pageList',
    method: 'get',
    params: query
  })
}

// 查询圈子动态详细
export function getTrends(id) {
  return request({
    url: '/pc/trends/info?id=' + id,
    method: 'get'
  })
}

// 新增圈子动态
export function addTrends(data) {
  return request({
    url: '/pc/trends/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 修改圈子动态
export function updateTrends(data) {
  return request({
    url: '/pc/trends/addOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除圈子动态
export function delTrends(id) {
  return request({
    url: '/pc/trends/delete?id=' + id,
    method: 'delete'
  })
}
